class CreateWifiAccounts < ActiveRecord::Migration
  def change
    create_table :wifi_accounts do |t|
      t.string :branch
      t.string :username
      t.string :password
      t.boolean :used, default: false
      t.references :account
      t.datetime :used_or_released_at

      t.timestamps
    end
    add_index :wifi_accounts, :account_id
  end
end
